public class test_6 {
    public static void main(String[] args) {
        int n = 1;
        int sum = 0;

        while (sum < 8888) {
            sum += n;
            n++;
        }
        n--;

        System.out.println(n);
    }
}